//
//  BlurImageView.m
//  CenturiesMusic
//
//  Created by 漫步人生路 on 15/6/22.
//  Copyright (c) 2015年 漫步人生路. All rights reserved.
//

#import "BlurImageView.h"

@implementation BlurImageView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {

        [self setImage:[UIImage imageNamed:@"22.jpg"]];
        self.userInteractionEnabled = YES;
        UIVisualEffectView *visualEffectView = [[UIVisualEffectView alloc]initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]];
        visualEffectView.frame = self.bounds;
        visualEffectView.alpha = 0.7;
        [self addSubview:visualEffectView];
    }
    return self;
}

@end
